<template>
	<view>
		<view class="mytop" v-for="(item,index) in list">
			<view class="myname">
				id：{{index+1}}
			</view>
			<view class="myname">
				用户名：{{item.user_nickname}}
			</view>
			<view class="myach">
				成绩 ： {{item.score}}分
			</view>
			<view class="mytime">
				考试时间 ：{{item.add_time}}
			</view>
			
		</view>
	</view>
</template>

<script>
	import http from 'common/js/http.js';
	export default {

		data() {
			return {
				phone:'',
				list:''
			}
		},
		onLoad(e) {
			console.log(e.phone)
			this.phone = e.phone
		},
		onShow() {
			this.getlist()
		},
		mixins: [http],
		methods: {
			getlist() {
				this.sendRequest({
					url: 'System.Order.examination',
					data: {
						phone:this.phone
					},
					success: res => {
						this.list =res.data
						console.log('goodsLog_res===============', res)
					}
				});
			},

		}
	}
</script>

<style>
	.mytop {
		width: 660rpx;
		margin: 0 auto;
		background-color: #FFFFFF;
		margin-top: 20rpx;
		padding: 20rpx;
		border-radius: 20rpx;
	}
</style>
